<template>
  <div>
     <ul>
      <li v-for="item in list" :key="item.id">{{item.name}}</li>
      <li v-for="(item,index) in arr" :key="index">{{item}}</li>
      <li v-if="(item,index) in arr" :key="index">{{item}}</li>
      <li v-for="item in list" :key="item.id">{{item.name}}</li>
     </ul>
   </div>
</template>
 
<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      list:[
        {id:1,name:'张'},
        {id:2,name:'李'},
        {id:3,name:'王'}
      ],
      arr:['241','235','325']
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>
